//
//  HelpViewController.m
//  EcmDoctor
//
//  Created by Mac on 16/2/19.
//  Copyright © 2016年 张进. All rights reserved.
//

#import "HelpViewController.h"
#import "AppUtils.h"
@interface HelpViewController ()
{
    __weak IBOutlet UIScrollView *_helpView;
    __weak IBOutlet NSLayoutConstraint *height;
    
}
@end

@implementation HelpViewController

- (void)viewDidLoad {
    [super viewDidLoad];
     self.navigationItem.titleView=[AppUtils generateNavigationItemTitleViewWithTitle:@"帮助"];
    height.constant=kScreenHeight*3.5;
    UIImage *tableIcon = [UIImage imageNamed:@"btn_back"];
    self.navigationItem.leftBarButtonItem =[[UIBarButtonItem alloc] initWithImage:tableIcon style:UIBarButtonItemStylePlain target:self action:@selector(changeToNavRootController:)];
    self.navigationItem.leftBarButtonItem.tintColor = [UIColor colorWithPatternImage:tableIcon];
    // Do any additional setup after loading the view.
}
-(void)changeToNavRootController:(id)sender{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
    if ([[UIDevice currentDevice].systemVersion floatValue] >= 6.0) {
        
        //需要注意的是self.isViewLoaded是必不可少的，其他方式访问视图会导致它加载 ，在WWDC视频也忽视这一点。
        
        if (self.isViewLoaded && !self.view.window)// 是否是正在使用的视图
        {
            // Add code to preserve data stored in the views that might be
            // needed later.
            
            // Add code to clean up other strong references to the view in
            // the view hierarchy.
            self.view = nil;// 目的是再次进入时能够重新加载调用viewDidLoad函数。
        }
        
    }
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
